package com.yearno.common.utils

object MultClickUtil {

    private var firstClickTime: Long = 0

    fun isInDelay(delay: Int): Boolean {
        var flag = false
        val curClickTime = System.currentTimeMillis()
        if (curClickTime - firstClickTime < delay) {
            flag = true
        } else {
            firstClickTime = curClickTime
        }
        return flag
    }
}